package com.markyao.controller;

import com.markyao.aop.LogAnnotation;
import com.markyao.service.CategoryService;
import com.markyao.vo.CategoryVo;
import com.markyao.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("productCategory")
public class CategoryController {
    @Autowired
    CategoryService categoryService;

    @LogAnnotation(module = "分类",operation = "获得分类列表")
    @GetMapping("getList")
    public Result getCategoryList(){

        return categoryService.findList();
    }
}

